﻿using System;

namespace Sustainalytics.Synchronization.Service
{
    /// <summary>
    /// Console app startup.
    /// </summary>
    public static class ProgramConsole
    {
        public static void Start()
        {
            try
            {
                var service = new WindowsService();
                service.StartServices();

                Console.WriteLine("{0} started for debugging.", service.ServiceName);
                Console.ReadKey();
            }
            catch (Exception ex)
            {
                Console.WriteLine(ex.ToString());
                Console.ReadKey();
            }
        }
    }
}
